package com.framework.service.impl;

import java.util.List;

import com.framework.mapper.AuthorityMapper;
import com.framework.pojo.Authority;
import com.framework.service.AuthorityService;

public class AuthorityServiceImpl implements AuthorityService {

	private AuthorityMapper authorityMapper;
	
	public List<Authority> searchAll() {
		
		return authorityMapper.searchAll();
	}
	
	public List<String> searchAuthorityNameAll() {

		return authorityMapper.searchAuthorityNameAll();
	}

	public Authority searchObject(String id) {
		
		return authorityMapper.searchObject(id);
	}

	public void setAuthorityMapper(AuthorityMapper authorityMapper) {
		this.authorityMapper = authorityMapper;
	}

}
